	<%@ page import="java.util.*" %>
	<%@ page import="util.*" %>
	<html>
	  <head>
			<title>Sistema de Vinos</title>
			<link rel="stylesheet" href="style.css">
	  </head>
	  <h1>Sistema de Vinos</h1>
	  <h2>Lista de Paises</h2>
					
					<% List profs = (List)request.getAttribute("paises"); %>
					  <table>
						  <thead>
							<tr><th>Nombre</th><th>Tipo</th><th>Acciones</th></tr>
							</thead>
							<tbody>
	                        <% for(int i = 0, n = profs.size(); i < n; i++) {
                         	PaisDTO prof = (PaisDTO) profs.get(i); %>
									<tr><td><%= prof.getNombre() %></td>
									<td><%= prof.getTipo() %></td>
									<td><a href='/detallePais?id=<%= prof.getId() %>'>
										<input type="submit" value="Detalle"/></a>
									<a href='/eliminarPais?id=<%= prof.getId() %>'>
										<input type="submit" value="Eliminar"/></a></td></tr>
							<% } %>
							</tbody>
							<tfoot>
							  <tr><td><a href='/AgregarPais.jsp'>
									<input type="submit" name="action" value="Agregar"/></a>
							  </td><td></td><td></td><td></td></tr>
							</tfoot>
					   </table>
	</html>